<!DOCTYPE html>
<html>
	<head>
		{% block head %}
            <title> {% block title %} 欢迎来到我的flask页面 {% endblock %} </title>
            <link rel="icon" type="image/x-icon" href="{{ url_for('static', filename='2bb.ico') }}"/>

            {% block style %}
				<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/bootstrap.min.css') }}">
            {% endblock %}
            <meta charset="utf-8">
            {% block meta %}

            {% endblock %}
		{% endblock %}
	</head>
	<body>

		<nav class="navbar navbar-expand-sm bg-dark navbar-dark" style="width: 50%; margin-left: 400px">
			<ul class="navbar-nav">
				<li class="nav-item active">
					<a class="nav-link" href="{{ url_for('index') }}">首页</a>
				</li>

			</ul>
		</nav>

		<main>
			{% for mess in get_flashed_messages() %}
				<br>
				<div class="alert alert-success" style="margin-left: 400px; width: 50%">{{ mess }}</div>
			{% endfor %}
			{% block content %} 暂时咩有内容 {% endblock content %}
		</main>

		<hr style="width: 50%; margin-left: 400px">
		<footer style="margin-left:400px">
			{% block footer %}
			<small>
				&copy; 2020  <a href="">Sundy</a> /
				<a href="">Github</a>
			</small>
			{% endblock %}
		</footer>
		{% block script %} {% endblock %}
	</body>
</html>
